Skip to content

Log file#588

Merged
mcserep merged 9 commits into
Ericsson:masterfrom
intjftw:log_file
Feb 13, 2023
Merged

Log file#588
mcserep merged 9 commits into
Ericsson:masterfrom
intjftw:log_file

Conversation

@Kalfou

@Kalfou Kalfou commented Nov 1, 2022

Copy link
Copy Markdown
Contributor

Logging to file option added.
In this version the java plugins log to their own files, while the C++ parts of the code log to a common file.

@intjftw intjftw linked an issue Nov 7, 2022 that may be closed by this pull request
@mcserep mcserep marked this pull request as ready for review November 14, 2022 16:13
@mcserep mcserep requested review from intjftw and mcserep November 14, 2022 16:15

@intjftw intjftw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the log appears to me like this:

2023-01-09 14:30:28.856078000 [INFO] [cppparser] parse started!
2023-01-09 14:30:28.856732000 [INFO] (2/2) Parsing /home/efekane/repos/tinyxml2/tinyxml2.cpp
2023-01-09 14:30:28.856742000 [INFO] (1/2) Parsing /home/efekane/repos/tinyxml2/xmltest.cpp
2023-01-09 14:30:29.051323000 [INFO] Indexer started! Mode: CREATE

I think the fraction of seconds should not appear, it's more annoying than useful. This also applies to saving to file.
The other issue is that the exact time stamp appears in the "core" CC log files, while it does not appear in the search plugins log files. Otherwise the logging works well for both the parser and the webserver.

Comment thread webserver/src/webserver.cpp
Comment thread plugins/search/indexer/indexer-java/src/cc/search/indexer/app/Indexer.java Outdated
@intjftw

intjftw commented Jan 9, 2023

Copy link
Copy Markdown
Contributor

One other thing I forgot in the review: the readme and the help text in both the parser and the webserver should be complemented with usage guide for logging options.

@mcserep mcserep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 👍
A couple of minor changes should be made before merging.

Comment thread util/src/logutil.cpp Outdated
Comment thread util/src/logutil.cpp
Comment thread util/src/logutil.cpp Outdated
Comment thread util/src/logutil.cpp Outdated
Comment thread parser/src/parser.cpp Outdated
Comment thread util/src/logutil.cpp Outdated
Comment thread webserver/src/webserver.cpp Outdated
Comment thread parser/src/parser.cpp Outdated
Comment thread plugins/search/common/src/cc/search/common/ipc/IPCProcessor.java Outdated

@mcserep mcserep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the corrections!

@mcserep mcserep merged commit e565660 into Ericsson:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write log messages to file

3 participants